package reviews

import (
	"github.com/gin-gonic/gin"
	"gogs.xiaoyuanjijiehao.com/antlinker/antcms/app/ginsrv/oplog"
	"gogs.xiaoyuanjijiehao.com/antlinker/antcms/core"
)

// Init 初始化
func Init(route *gin.RouterGroup, d core.CmsDomain) {
	review := createReviewCtrl(d)
	route.POST("", oplog.OplogRoute("cms/reviews/add", "增加审核信息", review.add))
	route.GET("target/:targetType/:targetID", oplog.OplogRoute("cms/reviews/list", "获取信息审核列表", review.getReviewList))
}
